<%
  #File:    /app/views/manage/users/_list_data.rhtml
  #Author:  Andrew Stone
  #Created: 08.02.2006
%>
<table>
  <thead>
    <tr>
      <td>Login</td>
      <td>First Name</td>
      <td>Last Name</td>
      <td>Actions</td>
    </tr>
  </thead>
  <tbody>
  <%
    i = 0
    @users.each do |user|
      bg = row_class(i)
      i += 1
  %>    
      <tr class="<%=bg%>">
        <td><%=h(user.login)%></td>
        <td><%=h(user.first_name)%></td>
        <td><%=h(user.last_name)%></td>
        <td>
          <%=secure_links([
              secure_link_to("Update", ca("/manage/users","update_#{role_action}", user.id)),
              secure_link_to("Show", ca("/manage/users","show_#{role_action}",user.id)),
              secure_link_to("Delete", ca("/manage/users","delete_#{role_action}",user.id), :confirm => "Are you sure?")])%>
        </td>
      </tr>
  <%
    end 
  %>
  </tbody>
</table>
<div id="actions">
  <%=secure_link_to("Create " + role_action.sub(/_/," ").capitalize,ca("/manage/users","create_#{role_action}"))%>
</div>

